package com.cby.operation.samples

import java.util.regex.Pattern

/**
 * @description: MainActivityExt
 *
 * @author ChenBaoyang
 * @date 7/26/21 15:15
 */
fun MainActivity.isNumeric(str: String?): Boolean {
    val pattern = Pattern.compile("[0-9]*")
    val isNum = pattern.matcher(str)
    return isNum.matches()
}


